package com.bulletelc.apollopre.module.main.center;

import android.content.Context;

import com.bulletelc.apollopre.entity.OrderStateCountBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2018/01/23
 * desc  : TODO
 */

public interface CenterContract {

    interface View extends IView {
        void onSuccessGetSetting(String name);
        void onFailGetSetting(String fail);
        void onErrorGetSetting(String error);

        void onSuccessGetAvatar(String url);
        void onFailGetAvatar(String msg);
        void onErrorGetAvatar(String msg);

        void onSuccessGetOrderStateCount(OrderStateCountBean orderStateCountBean);
        void onFailGetOrderStateCount(String fail);
        void onErrorGetOrderStateCount(String error);

        void onSuccessPostAvatar(String msg);
        void onErrorPostAvatar(String msg);
        void onFailPostAvatar(String msg);
    }

    interface Presenter extends IPresenter<View> {
        void getSetting();
        void getAvatar();
        void getOrderStateCount();
        void postAvatar(Context context,String path);
    }

}
